package com.petdog.infrastructure.entity;

import lombok.Data;
import java.time.LocalDateTime;

/**
 * 社区实体类
 */
@Data
public class Community {
    private Long communityId;
    private String name; // 社区名称
    private String communityName; // 社区名称别名
    private String description; // 社区描述
    private String avatar; // 社区头像URL
    private String coverImage; // 社区封面URL
    private Long creatorId; // 创建者ID
    private Integer memberCount; // 成员数量
    private Integer postCount; // 帖子数量
    private Integer status; // 社区状态：1-正常，2-冻结，3-解散
    private String tags; // 社区标签(逗号分隔)
    private LocalDateTime createTime; // 创建时间
    private LocalDateTime updateTime; // 更新时间
    public Long getCommunityId() {
        return communityId;
    }
    
    public void setCommunityId(Long communityId) {
        this.communityId = communityId;
    }
    
    public Integer getStatus() {
        return status;
    }
    
    public void setStatus(Integer status) {
        this.status = status;
    }
    
    public Integer getMemberCount() {
        return memberCount;
    }
    
    public void setMemberCount(Integer memberCount) {
        this.memberCount = memberCount;
    }
    
    public Integer getPostCount() {
        return postCount;
    }
    
    public void setPostCount(Integer postCount) {
        this.postCount = postCount;
    }
    
    public LocalDateTime getCreateTime() {
        return createTime;
    }
    
    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }
    
    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }
    
    private LocalDateTime lastActiveTime; // 最后活跃时间
}
